﻿using JunYu.CodeGeneration;
using JunYu.CodeGeneration.Models.Model;
using JunYu.CodeGeneration.Repositorys;
using JunYu.CodeGeneration.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        protected IAddServices _addServices;
        public Form1(IAddServices addServices)
        {
            _addServices = addServices;
            InitializeComponent();
        }


        private void button1_Click(object sender, EventArgs e)
        {
            DBConnectionInfo data = new DBConnectionInfo()
            {
                Id = Guid.NewGuid(),
                CreateMan = "卢俊雨",
                Remark = "备注控制太连接",
                DbType = 0,
                ConnecttiomName = "sqlservertest",
                Host = "127.0.0.1",
                Post = "3306",
                DbName = "Student",
                UserName = "sa",
                PassWord = "123456"
            };
            
            _addServices.Add(data);
        }
    }
}
